<!-- eslint-disable no-use-before-define -->
<!--
 * @Description: Description
 * @Author: Kerwin
 * @Date: 2023-12-04 15:57:32
 * @LastEditTime: 2024-03-25 00:25:16
 * @LastEditors:  Please set LastEditors
-->
<!-- eslint-disable @typescript-eslint/no-empty-function -->
<!-- eslint-disable @typescript-eslint/no-unused-vars -->
<script setup lang="ts">
import { reactive, ref, computed } from 'vue'
import {
  onLoad,
  onShow,
  onReady,
  onReachBottom,
  onPageScroll
} from '@dcloudio/uni-app'
import { storeToRefs } from 'pinia'
import { orderApi,userApi } from '@/api'
import { getImgFullPath, dateFormat } from '@/utils/index'
import { useConfigStore, useUserStore } from '@/store'
import { route } from '@/utils/common'
import C_SHOP from './c_shop.vue'

const inviteCode = ref('')
const userStore = useUserStore()
const configStore = useConfigStore()

const scrollTop = ref(0)
onPageScroll((e) => {
  scrollTop.value = e.scrollTop
})
onLoad((option) => {
  inviteCode.value = option?.inviteCode || userStore.userInfo?.shareCode
})
onReachBottom(() => {
})
</script>
<template>
  <view class="container">
    <hy-nav-bar title="推广门店" v-if="!configStore.isWeChatBrowser"></hy-nav-bar>
    <C_SHOP :inviteCode="inviteCode" />
    <u-back-top :scroll-top="scrollTop"></u-back-top>
  </view>
</template>

<style lang="scss" scoped>
.container {
  padding: 30rpx 30rpx 30rpx 30rpx;
}

</style>
